<?php 
		include_once 'includes/init.php';

		error_reporting(E_ERROR | E_PARSE);
		$type = $_GET['value'];
		$sql = "select * from t_product where type = '".$type."' ";
		$result = $db_Obj->getall($sql);
		foreach ($result as $key => $value) {
			echo json_encode($value);
		}

		// $query = mysql_query($sql);
		// $result = mysql_fetch_row($query);
		// echo $result;
 ?>